package com.example.sp_es.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "test",type = "_doc", shards = 1, replicas = 0)
public class Book implements Serializable {

    private Integer id;
    private String name;
    private String desc;
    private Date birth;
   private String auth;
}
